import request from "@/util/request";

export function addComment(params: any) {
    return request({
        url: import.meta.env.VITE_WEB_API + '/web/comment/add',
        method: 'post',
        data: params
    })
}

export function getCommentList(params: any) {
    return request({
        url: import.meta.env.VITE_WEB_API + '/web/comment/getList',
        method: 'post',
        data: params
    })
}

export function getCommentListByUser(params: any) {
    return request({
        url: import.meta.env.VITE_WEB_API + '/web/comment/getCommentListByUser',
        method: 'post',
        data: params
    })
}
